package com.chixing.controller;

import com.chixing.service.CustomerMainService;
import com.chixing.util.ServerResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CustomerMainController {
    @Autowired
    private CustomerMainService customerMainService;

    @GetMapping("customer/customermain/{custId}")
    @ResponseBody
    public ServerResponse getById(@PathVariable("custId") Integer custId){
        return customerMainService.getById(custId);
    }



}

